package com.example.lol.ui.adapter;



import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.lol.R;
import com.example.lol.ui.bean.TopCategoryBean;

import org.jetbrains.annotations.NotNull;


public class Adapter extends BaseQuickAdapter<TopCategoryBean, BaseViewHolder> {

    public Adapter() {
        super(R.layout.item);
    }
    protected void convert(@NotNull BaseViewHolder baseViewHolder, TopCategoryBean newsBean) {

        baseViewHolder.setText(R.id.tv_user_name, newsBean.getUserName());
        baseViewHolder.setImageResource(R.id.tv_user_head, newsBean.getHeadId());
    }

}
